package com.hbnu.exercise.net;

import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;

public class TcpServerDemo06
{
    public static void main(String[] args)
    {
        try
        {
            ServerSocket serverSocket = new ServerSocket(8888);
            System.out.println("可以上传图片了");
            while (true)
            {
                Socket socket = serverSocket.accept();
                new Thread(new TcpServerThreadDemo06(socket));
            }
        } catch (IOException e)
        {
            e.printStackTrace();
        }


    }
}
